package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.IntentionMapper;
import com.ygs.secs.model.Intention;
import com.ygs.secs.service.IntentionService;

@Service
public class IntentionServiceImpl implements IntentionService {

    @Resource
    private IntentionMapper intentionMapper;

    @Override
    public int deleteByPrimaryKey(Integer intentid) {
        return intentionMapper.deleteByPrimaryKey(intentid);
    }

    @Override
    public int insert(Intention record) {
        return intentionMapper.insert(record);
    }

    @Override
    public int insertSelective(Intention record) {
        return intentionMapper.insertSelective(record);
    }

    @Override
    public Intention selectByPrimaryKey(String stuid) {
        return intentionMapper.selectByPrimaryKey(stuid);
    }

    @Override
    public int updateByPrimaryKeySelective(Intention record) {
        return intentionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Intention record) {
        return intentionMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Intention> list) {
        return intentionMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Intention> list) {
        return intentionMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Intention> list) {
        return intentionMapper.batchInsert(list);
    }

}


